package com.jxs.tourist.dao;

import com.jxs.tourist.domain.User;
import com.jxs.tourist.domain.UserListBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("userDao")
public interface UserDao {
    int insert(User record);//注册
    User selectByPrimaryKey(String account);//根据用户账号登录时选出user对象
    List<UserListBean> getAllUser(int actype);//列出所有用户
    int editPassword(User user);
    User selectByUserId(int id);
    int deleteAdmin(int id);
    List<User> getAllUserByPage(@Param("total") int page, @Param("pageSize") int pageSize);
}
